package com.com.corejavalearnings.reflection;

/**
 * Created by pankaj on 7/25/15.
 */
public class Generics {
    public static void main(String[] args) {
        Class cls = null;

        try {
             cls = Class.forName("com.com.corejavalearnings.reflection.Generics");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

        Integer i = 5;
        Class<? extends Number> clazz = i.getClass();
        System.out.println(i.getClass().getCanonicalName());
        System.out.println(i.getClass().getSimpleName());
        System.out.println(Generics.class.getClassLoader().toString());
        System.out.println(cls.getClassLoader().getResourceAsStream("/conf/logging.properties"));
        System.out.println(cls.getClassLoader().getResourceAsStream("/conf/logging.properties"));
        System.out.println(Generics.class.getResourceAsStream("/conf/logging.properties"));
    }
}
